import request from '@/utils/request'

// 查询工艺施工列表
export function listProcessExec(query) {
  return request({
    url: '/mes/processExec/list',
    method: 'get',
    params: query
  })
}

// 查询工艺施工详细
export function getProcessExec(processExecUuid) {
  return request({
    url: '/mes/processExec/' + processExecUuid,
    method: 'get'
  })
}

// 新增工艺施工
export function addProcessExec(data) {
  return request({
    url: '/mes/processExec',
    method: 'post',
    data: data
  })
}

// 生成工艺施工
export function genProcessExec(data) {
  return request({
    url: '/mes/processExec/gen',
    method: 'post',
    data: data
  })
}

// 修改工艺施工
export function updateProcessExec(data) {
  return request({
    url: '/mes/processExec',
    method: 'put',
    data: data
  })
}

// 删除工艺施工
export function delProcessExec(processExecUuids) {
  return request({
    url: '/mes/processExec/' + processExecUuids,
    method: 'delete'
  })
}


// 查询下拉树结构
export function treeSelect_processExec(query) {
  return request({
    url: '/mes/processExec/treeSelect',
    method: 'get',
    params: query
  })
}
